import Vue from 'vue'
import Router from 'vue-router'
//import HelloWorld from '@/components/HelloWorld'
import index from '@/components/index'
import register from '@/components/register'
import goodslist from '@/modules/goodslist/components/goodslist'
import goodsDetail from '@/modules/goodsDetail/components/goodsDetail'
import cardDetail from '@/modules/cardDetail/components/cardDetail'
import cardDetailGoods from '@/modules/cardDetail/components/cardDetailGoods'
import gpsCitys from '@/modules/gpsCitys/components/gpsCitys'

Vue.use(Router)

export default new Router({
    routes: [
        {path: '/', name: 'index', component: index,meta:{title:'首页'}},
        {path: '/register', component: register,meta:{title:'登录注册'}},
        {path: '/goodslist', component: goodslist, name: 'goodslist',meta:{title:'商户列表'}},
        {path: '/goodsDetail', component: goodsDetail, name: 'goodsDetail',meta:{title:'商户详情'}},
        {path: '/cardDetail', component: cardDetail,name:'cardDetail',meta:{title:'会员卡详情'}},
        {path: '/cardDetailGoods', component: cardDetailGoods,meta:{title:'会员商户列表'}},
        {path:'/gpsCitys',component:gpsCitys,meta:{title:'城市定位'}}
    ]
})
